package com.shanzmoo.pay.domain;

import java.io.Serializable;

/**
 * @author dingmeng
 * @title: OpenParameters
 * @projectName jyf-mall-server
 * @description: TODO
 * @date 2021/4/416:53
 */
public final class OpenParameters implements Serializable {
    private static final long serialVersionUID = 1L;
    private String apiName;
    private String apiUrl;
    private String apiVersion;
    private String param;

    private OpenParameters(OpenParameters.Builder builder) {
        this.apiName = builder.apiName;
        this.apiUrl = builder.apiUrl;
        this.apiVersion = builder.apiVersion;
        this.param = builder.param;
    }

    public String getApiName() {
        return this.apiName;
    }

    public String getApiUrl() {
        return this.apiUrl;
    }

    public String getApiVersion() {
        return this.apiVersion;
    }

    public String getParam() {
        return this.param;
    }

    public static class Builder {
        private String apiName;
        private String apiUrl;
        private String apiVersion;
        private String param;

        public Builder() {
        }

        public OpenParameters.Builder apiName(String apiName) {
            this.apiName = apiName;
            return this;
        }

        public OpenParameters.Builder apiUrl(String apiUrl) {
            this.apiUrl = apiUrl;
            return this;
        }

        public OpenParameters.Builder apiVersion(String apiVersion) {
            this.apiVersion = apiVersion;
            return this;
        }

        public OpenParameters.Builder param(String param) {
            this.param = param;
            return this;
        }


    }
}
